package com.ssr.master.modules.impl;

import com.ssr.master.modules.dao.SysRoleDao;
import com.ssr.master.modules.entity.SysRole;
import com.ssr.master.modules.service.SysRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author ZhangPeng
 * @Describe //todo
 * @date
 * @updateBy
 * @other
 **/
@Service("SysRoleService")
public class SysRoleImpl implements SysRoleService {

    @Autowired
    private SysRoleDao sysRoleDao;

    /**
     * @param userId
     * @return java.util.List<com.ssr.master.modules.entity.SysRole>
     * @Description //todo 通过用户UserId获取用户所有角色
     * @author ZhangPeng
     * @date 2020/6/20 14:44
     * @other
     **/
    @Override
    public List<SysRole> getUserRoleList(String userId) {
        List<SysRole> list = sysRoleDao.getUserRoleList(userId);
        return list;
    }

    @Override
    public SysRole get(String id) {
        return null;
    }

    @Override
    public SysRole get(SysRole var1) {
        return null;
    }

    @Override
    public List<SysRole> findList(SysRole var1) {
        return null;
    }

    @Override
    public List<SysRole> findAllList(SysRole var1) {
        return null;
    }

    @Override
    public List<SysRole> findAllList() {
        return null;
    }

    @Override
    public int insert(SysRole var1) {
        return 0;
    }

    @Override
    public int update(SysRole var1) {
        return 0;
    }

    @Override
    public int delete(String var1) {
        return 0;
    }

    @Override
    public int delete(SysRole var1) {
        return 0;
    }


}
